import random
reverse = 0
front = 0
for i in range(0,1000000):
    r = random.randint(0,1)
    if r == 0:
        reverse += 1
    else:
        front += 1

print("反面次数：",reverse)
print("正面次数：",front)